package com.lhd.struct.flyweight;

/**
 * @Author: liuhd
 * @Date: 2024/12/16 20:55
 * @Description: 抽象享元类
 */
public abstract class AbstractBox {
    public abstract String getShape();
    public void display(String color){
        System.out.println("颜色为" + color + "," + getShape());
    }
}
